package com.jiangnan.warehouse_management.service;

import com.jiangnan.warehouse_management.dto.request.CategoryRequest;
import com.jiangnan.warehouse_management.dto.request.CategoryUpdateRequest;
import com.jiangnan.warehouse_management.dto.response.CategoryQueryResponse;
import com.jiangnan.warehouse_management.pojo.Category;

public interface CategoryService {
    CategoryQueryResponse getCategories(Integer page, Integer pageSize, String categoryName);

    Category createCategory(CategoryRequest request);

    CategoryQueryResponse.CategoryResponse getCategoryById(Integer categoryId);

    Category updateCategory(Integer id, CategoryUpdateRequest request);

    void deleteCategory(Integer id);
}
